package cn.stylefeng.guns.modular.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.entity.WorkBook;
import cn.stylefeng.guns.modular.model.params.WorkBookParam;
import cn.stylefeng.guns.modular.model.result.WorkBookResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 工作 服务类
 * </p>
 *
 * @author luoqingqiu
 * @since 2020-09-25
 */
public interface WorkBookService extends IService<WorkBook> {

    /**
     * 新增
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
    void add(WorkBookParam param);

    /**
     * 删除
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
    void delete(WorkBookParam param);

    /**
     * 更新
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
    void update(WorkBookParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
    WorkBookResult findBySpec(WorkBookParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
    List<WorkBookResult> findListBySpec(WorkBookParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author luoqingqiu
     * @Date 2020-09-25
     */
     LayuiPageInfo findPageBySpec(WorkBookParam param);

}
